import styled from 'styled-components';

export const DetailMetaWrapper = styled.div`
  .introduce {
    margin-top: 20px;
    > h3 {
      font-size: 12px;
    }
    .content {
      color: #666;
      white-space: pre-line; /* 保留换行符 */
      text-indent: 1em;
      line-height: 24px;
      margin-top: 4px;
    }
    .toggle-more {
      color: #0c73c2;
      cursor: pointer;
      display: inline-block;
      width: 100%;
      text-align: right;
    }

    .toggle-more:hover {
      text-decoration: underline;
    }
  }
  .at_info {
    color: #666;
    font-size: 12px;
    .tag {
      margin-top: 20px;
      .item {
        margin: 0px 10px 3px 0;
        padding: 0 10px 0 0;
        text-shadow: 0 1px #fdfdfd;
        background-position: right -27px;
        text-decoration: none;
        display: inline-block;
        height: 22px;
        line-height: 22px;
        > i {
          display: inline-block;
          background-position: 0 0;
          padding: 0 3px 0 13px;
          height: 22px;
          line-height: 22px;
          &:hover {
            background-position: 0 -1400px;
          }
        }
        &:hover {
          background-position: right -1430px;
        }
      }
    }
    .content {
      line-height: 18px;
    }
  }
`;

export const DetailMetaInfoWrapper = styled.div`
  display: flex;
  position: relative;
  .info_img {
    > span {
      width: 209px;
      height: 177px;
      background-position: 0 -986px;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
  .info {
    width: 400px;
    padding-left: 60px;
    .name {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      > i {
        display: inline-block;
        width: 54px;
        height: 24px;
        background-position: 0 -186px;
      }
      > span {
        font-size: 20px;
        padding-left: 6px;
        font-weight: normal;
      }
    }
    .p_name {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      > i {
        display: inline-block;
        width: 54px;
        height: 24px;
        background-position: 0 -243px;
      }
      > span {
        font-size: 20px;
        padding-left: 6px;
        font-weight: normal;
      }
    }
    .m_name {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      > i {
        display: inline-block;
        width: 54px;
        height: 24px;
        background-position: 0 -463px;
      }
      > span {
        font-size: 20px;
        padding-left: 6px;
        font-weight: normal;
      }
    }
    > p {
      margin-top: 4px;
      line-height: 18px;
      color: #666;
      > a {
        color: #0c73c2;
        cursor: pointer;
      }
    }
    .ctrl {
      margin-top: 20px;
    }
    .single-key {
      margin: 6px 0;
      .single-val {
        text-decoration: none;
        cursor: pointer;
        color: #0c73c2;
      }
    }
  }
`;
